package com.example.easypoi.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class Area {

    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty("地区父级id")
    private String parentId;

    @ApiModelProperty("地区名称")
    private String name;

    @ApiModelProperty("等级[0国家 1省 2市 3区县]")
    private Integer level;

    @ApiModelProperty("区域编号")
    private String cityCode;

    @ApiModelProperty("纬度")
    private BigDecimal longitude;

    @ApiModelProperty("经度")
    private BigDecimal latitude;

    @ApiModelProperty("数据封装")
    List<Area> children = new ArrayList<>();
}
